package com.milk.service;

import com.milk.dto.CommonPageQueryDTO;
import com.milk.dto.EmployeeDTO;
import com.milk.dto.EmployeeLoginDTO;
import com.milk.entity.Employee;
import com.milk.result.PageResult;

import java.util.List;

public interface EmployeeService {

    /**
     * 员工登录
     * @param employeeLoginDTO
     * @return
     */
    Employee login(EmployeeLoginDTO employeeLoginDTO);

    /**
     * 修改密码
     * @param dto
     * @return
     */
    int editPassword(EmployeeDTO dto);

    /**
     * 新增员工
     * @param dto
     */
    void insert(Employee dto);

    void update(Employee dto);

    void deleteByIds(List<Long> ids);

    PageResult selectAll(CommonPageQueryDTO dto);

    Employee getEmployeeInfo();

}
